package D240523.Practice03;

import D240523.practice02.Input;

public class Blocker {
    private static final String wordsForBlock = "****";
    private static final String[] blockWords = new String[]{"sb", "cnm"};// 可拓展的屏蔽词库

    public static void check(D240523.Practice03.Input input) {
        for (int i = 0; i < blockWords.length; i++) {
            if (input.comment.contains(blockWords[i])) {
                input.comment = input.comment.replace(blockWords[i], wordsForBlock);
            }
        }
    }
}
